<?php if ($this->admin): ?>
<?php echo $this->layout()->content; ?>
<?php else: ?>
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
                <title>
                    Hello Shop
                </title>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <link href="/css/beauty/reset.css" rel="stylesheet" type="text/css" />
                <link href="/css/beauty/master.css" rel="stylesheet" type="text/css" />
                <link href="/css/beauty/mall.css" rel="stylesheet" type="text/css" />
                <link href="/css/beauty/myhome.css" rel="stylesheet" type="text/css" />
                <script type="text/javascript" src="/jscript/default/js.js"></script>
                <script type="text/javascript" src="/jscript/comm/divwindows.js"></script>
            </head>
            <body id="index">
                <div id="wrapper">
                    <div id="top">
                        <div id="logo"><a href="/"><img src="/images/logo-1.gif" alt="logo"/></a></div>
                        <div id="nav">
                            <div id="quickLinks">
                                <span class="quickInner">
                            <?php
                            require_once 'business/AccountManager.php';
                            $identity = Business_AccountManager::getUserIdentity();
                            ?>
                            <span id="headerLoginNo">
                                <?php if ($identity == null): ?>
                                    <a href="/account/register"class="registing">注册</a>
                                    <a href="/account/login" class="loging">登录</a>
                                <?php endif; ?>
                                </span>

                            <?php if ($identity != null): ?>
                                        <a href="/profile/list" title="用户中心" class="myhome">
                                <?php echo $identity ?>
                                    </a>
                            <?php endif; ?>

                            <?php if ($identity != null): ?>
                                            <a href="/account/logout">[注销]</a>
                            <?php endif; ?>
                                            <a href="#shop" onclick="setUserShopFrame('');myshow('usershop');callLoad('loadingiframe');" title="我的购物车" class="shopping">我的购物车</a>
                                            <a href="/order/buy" class="car">柜台结帐</a>
                                        </span>
                                    </div>
                                    <div id="menu">
                                        <ul>
                                            <li id="home" ><a href="/" title="商品首页">商品首页<span>商品首页</span></a></li>
                                            <li id="home"><a href="/product/new" title="最新商品">最新商品<span>最新商品</span></a></li>
                                            <li id="home"><a href="/product/hot" title="最热商品">最热商品<span>最热商品</span></a></li>

                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div id="search">
                            </div>
            <?php
                                            echo $this->layout()->content;
            ?>
                                        </div>
                                        <div id="usershop" style="display:none;position:absolute; width:834px; height:510px; margin:0px; padding:0px;" onmouseover="drag(this ,this);">
                                            <div id="s_content">
                                                <div id="s_nav" style=" cursor:move;">
                                                    <ul>
                                                        <li id="n1" class="s_nav_cur">购物车</li>
                                                        <li id="n2"></li>
                                                    </ul>
                                                    <div id="close"><img src="/images/default/close_win.gif" border="0" alt="关闭窗口" onclick="dispalymyshow('usershop')" /></div>
                                                </div>
                                                <div id="c3" class="s_div">
                                                    <div class="decss tags_css">
                                                        <span id="loadingiframe"></span>
                                                        <div id="iframeshop" style="height:378px; margin:0px; padding:0px;"></div>
                                                    </div>
                                                </div>
                                                <div id="check_out" style="height:30px; margin:0px; padding:0px; text-align:center;">
                                                    <a href="/order/buy"><img src="/images/default/icostore.gif" alt="柜台结帐" width="79" height="27" border="0" /></a>
                                                    <img src="/images/default/icoreg.gif" style="cursor:pointer;" alt="继续采购" width="79" height="27" border="0" onclick="dispalymyshow('usershop')" />		</div>
                                            </div>
                                        </div>

                                    </body>
                                </html>

<?php endif; ?>